import request from '@/utils/request'

// 码号生成
export function generaterApi(params?: Record<string, any>) {
  return request.post({
    url: '/activity/code/generate',
    params,
  })
}
// 列表
export function getCodeListsApi(params?: Record<string, any>) {
  return request.post({
    url: '/activity/code/lists',
    params,
  })
}
export function statusApi(params: Record<string, any>) {
  return request.post({
    url: '/activity/code/status',
    method: 'post',
    params,
  })
}

export function checkCode(params: Record<string, any>) {
  return request.post({
    url: '/activity/code/check',
    method: 'post',
    params,
  })
}

export function codesStatisticsApi(params: Record<string, any>) {
  return request.post({
    url: '/activity/code/statistics',
    method: 'post',
    params,
  })
}
export function getCodeNoApi(params: Record<string, any>) {
  return request.post({
    url: '/activity/code/comple_code_no',
    method: 'post',
    params,
  })
}
